import {LoginUser} from "@/services/system/login/types";


/**
 * @see https://umijs.org/zh-CN/plugins/plugin-access
 * */
export default function access(initialState: { currentUser?: LoginUser } | undefined) {
  const {currentUser} = initialState ?? {};
  return {
    hasAuth: (route: any) => {
      // return currentUser?.menuList.includes(route.name)
      return true;
    }
  };
}
